<h1>编辑 <%= @pcate.name -%> 属性</h1>

<table class="admin">
  <tr>
    <th>名称</th>
    <th>取值范围</th>
    <th colspan="3">操作</th>
  </tr>

<% for property in @properties %>
  <tr>
    <td><%=h property.name %></td>
    <td><%=h property.range %></td>
    <td><%= link_to '查看', [@pcate,property] %></td>
    <td><%= link_to '编辑', [:edit,@pcate,property] %></td>
    <td><%= link_to '删除',  [@pcate, property], :confirm => '确定删除?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to '新建属性', new_pcate_property_path %>
